package com.fs.jzzn.pojo;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Formula;

import com.fs.base.pojo.PEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 出库管理
 * @author ACE
 *
 */
@Entity
@Table(name="p_the_library")
@Data@EqualsAndHashCode(callSuper=false)
public class TheLibrary extends PEntity{
	private String billNo;		//出库编号
	private String roadNo;		//订单编号
	
	@Formula("(select c.contract_name from p_contract c where c.contract_no = road_no  limit 1)")
	private String pRoad;	//订单名称
	
	private String pm;			//项目经理
	private String sender;	//发货人
	private String picking;	//领料人
	private String pickingPhone;	//领料人电话
	private String warehouseName;	//仓库名称
	
	private String outDate;		//出库日期
	private String department;	//关联项目部
	
	private String status;		//状态0-暂存 1-出库
 
	@Transient
 	private  String theLibraryItemJson;
}
